﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

namespace SharpSoda.Message
{
    [DataContract]
    public class BusinessMessage : JsonMessage
    {
        [DataMember(Name = "head")]
        public BusinessBasicInfo Head { get; set; }

        public BusinessMessage() : base()
        {
            Head = new BusinessBasicInfo();
        }
    }

    [DataContract]
    public class BusinessBasicInfo
    {
        [DataMember(Name = "biz")]
        public string BusinessName { get; set; }

        [DataMember(Name = "obj")]
        public string ObjectName { get; set; }

        [DataMember(Name = "usr")]
        public string UserName { get; set; }

        [DataMember(Name = "org")]
        public string Organization { get; set; }

        [DataMember(Name = "key")]
        public string Token { get; set; }  

        public BusinessBasicInfo()
        {
            BusinessName = "";
            ObjectName = "";
            UserName = "";
            Organization = "";
            Token = "";
        }
    }
}
